package com.wty.member.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDate;
import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author wty
 * @since 2020-04-28
 */
@TableName("wty_member")
public class Member extends Model<Member> {

    private static final long serialVersionUID = 1L;

    @TableId
    private Long memberId;

    private String account;

    /**
     * 密文
     */
    private String password;

    private String nickname;

    private String phone;

    private LocalDate birth;

    private String addr;


    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public LocalDate getBirth() {
        return birth;
    }

    public void setBirth(LocalDate birth) {
        this.birth = birth;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    @Override
    protected Serializable pkVal() {
        return this.memberId;
    }

    @Override
    public String toString() {
        return "Member{" +
        "memberId=" + memberId +
        ", account=" + account +
        ", password=" + password +
        ", nickname=" + nickname +
        ", phone=" + phone +
        ", birth=" + birth +
        ", addr=" + addr +
        "}";
    }
}
